home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / fs / glo.h < prev    next >
C/C++ Source or Header  |  1990-07-20  |  1KB  |  34 lines

  1. /* EXTERN should be extern except for the table file */
  2. #ifdef _TABLE
  3. #undef EXTERN
  4. #define EXTERN
  5. #endif
  6.  
  7. /* File System global variables */
  8. EXTERN struct fproc *fp;    /* pointer to caller's fproc struct */
  9. EXTERN int super_user;        /* 1 if caller is super_user, else 0 */
  10. EXTERN int dont_reply;        /* normally 0; set to 1 to inhibit reply */
  11. EXTERN int susp_count;        /* number of procs suspended on pipe */
  12. EXTERN int reviving;        /* number of pipe processes to be revived */
  13. EXTERN off_t rdahedpos;        /* position to read ahead */
  14. EXTERN struct inode *rdahed_inode;    /* pointer to inode to read ahead */
  15. EXTERN char fstack[FS_STACK_BYTES];    /* the File System's stack. */
  16.  
  17. /* The parameters of the call are kept here. */
  18. EXTERN message m;        /* the input message itself */
  19. EXTERN message m1;        /* the output message used for reply */
  20. EXTERN int who;            /* caller's proc number */
  21. EXTERN int fs_call;        /* system call number */
  22. EXTERN char user_path[PATH_MAX];/* storage for user path name */
  23.  
  24. /* The following variables are used for returning results to the caller. */
  25. EXTERN int err_code;        /* temporary storage for error number */
  26. EXTERN int rdwt_err;        /* status of last disk i/o request */
  27.  
  28. /* Data which needs initialization. */
  29. typedef unsigned short u16_t;    /* belongs in h/type.h */
  30. extern u16_t data_org[INFO + 2];/* origin and sizes of init */
  31.                 /* belongs in h/build.h */
  32. extern int (*call_vector[])();    /* table of system calls handled by FS */
  33. extern max_major;        /* maximum major device (+ 1) */
  34.